package com.weixin.sendmsg.job;

import com.weixin.sendmsg.util.Pusher;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 *
 * @author admin
 * @ClassName JobWorker
 * @Description TODO
 * TODO 定时任务+opeid的配置
 *
 */
@Component
public class JobWorker {

    //要推送的用户openid
    private static String openId = "open-id";


    @Scheduled(cron = "0 30 7 * * ?")  // cron表达式 每天7点30执行
    public void goodMorning(){
        Pusher.push(openId);
    }

}
